/*  后端请求接口地址  */
import { HTTP_URL } from './http_url_config'
export default function () {
  let o = {
    // 接口地址封装
    getUrl: function (key, id) {
      // let hostUrl = 'http://192.168.1.114:5080/api/' // 本地测试地址
      // let hostUrl = 'http://223.167.111.4:5080/api/'; //服务器地址
      // let hostUrl = '/standard/api/' // 服务器地址(songjiang)
      let hostUrl =
        process.env.NODE_ENV === 'development'
          ? '/epsvt/api/'
          : `${HTTP_URL}/epsvt/api/`
      let r, p
      switch (key) {
        // 系统日志
        case 'systemLog': // 1.根据模块编号查询Count,请求类型GET 123
          r = '/syslog/list'
          break
        /* === 菜单 === */
        case 'getUserMenuTree': // 1.根据模块编号查询Count,请求类型GET 123
          r = '/rosmeninfo/getUserMenuTree'
          break
        /* === 事件信息管理 === */
        // case 'getCount': // 1.根据模块编号查询Count,请求类型GET
        //   r = 'getCount'
        //   break
        case 'getCountByState': // 2.根据模块编号查询待处理报警数量
          r = 'getCountByState'
          break
        case 'getEventInfo': // 3.根据模块编号查询待处理事件,请求类型GET
          r = 'getEventInfo'
          break
        case 'getHistory': // 4.根据模块编号查询历史事件,请求类型GET
          r = 'getHistory'
          break
        case 'eventUpdate': // 5.处理完成,请求类型POST
          r = 'update'
          break
        case 'getEventListByDeptId': // 5.处理完成,请求类型POST
          r = 'getEventListByDeptId'
          break

        // zm
        case 'getstandardData':
          r = 'fb/getEventAll'
          break
        case 'getStatisByMoudle':
          r = 'fb/statisByMoudle'
          break
        case 'getStatisEvent':
          r = 'fb/statisEvent'
          break
        case 'getStatisEquEvent':
          r = 'fb/statisEquEvent'
          break
        case 'getStatisEventMonth':
          r = 'fb/statisEventMonth'
          break
        // zm

        /* === 事件接口 === */
        case 'infoById': // 3.获取事件信息,请求类型POST
          r = 'infoById'
          break
        case 'infoByType': // 4.事件信息列表,请求类型GET
          r = 'infoByType'
          break
        case 'eventInsert': // 5.事件信息列表,请求类型POST
          r = 'insert'
          break

        /* === 功能模块管理 === */
        case 'getAlertNum': // 1.获取系统警报数量,请求类型GET
          r = 'getAlertNum'
          break
        case 'getModuleBySupModuleId': // 2.查询该模块下所有子模块的报警数量,请求类型GET
          r = 'getModuleBySupModuleId'
          break
        case 'getModuleInfoTree': // 3.告警类型 树形列表查询,请求类型GET
          r = 'getModuleInfoTree'
          break
        case 'addModule':
          r = 'addModule'
          break
        case 'delModule':
          r = 'delModule'
          break
        case 'updateModule':
          r = 'updateModule'
          break
        case 'getValidRootModuleList': // 获取所有可用的一级场景
          r = 'getValidRootModuleList'
          break
        case 'getValidChildModuleList': // 获取所有可用的二级场景
          r = 'getValidChildModuleList'
          break

        /* === 反馈接口 === */
        case 'feedbackInfo': // 1.加载反馈信息,请求类型GET
          r = 'feedback/info/' + id
          break
        case 'feedbackList': // 2.获取事件信息,请求类型GET
          r = 'feedback/list' + id
          break
        case 'feedbackSave': // 3.事件信息列表,请求类型POST
          r = 'feedback/save'
          break

        /* === 图片接口 === */
        case 'imgUpload': // 1.图片上传,请求类型PUT
          // r = 'picture/event/img/upload'
          r = 'bizfileinfo/uploadFile'
          break
        case 'UploadNum': // 2.最大图片上传数量,请求类型GET
          r = 'getMaxFileUploadNum'
          break

        /* === 报警信息推送接口 === */
        case 'alarmList': // 1.查询所有报警信息列表,请求类型POST
          r = 'v1/alarmList'
          break
        case 'inserAlarmInfo': // 2.报警信息推送,请求类型POST
          r = 'v1/inserAlarmInfo'
          break
        case 'wellCoverAlarmInfo': // 3.井盖告警数据接口,请求类型POST
          r = 'v1/wellCoverAlarmInfo'
          break

        /* === 指标参数管理接口 === */
        case 'getUserRoles': // 1.角色列表查询,GET
          r = 'getUserRoles'
          break

        /* === 用户接口 === */
        case 'userInfo': // 1.加载用户信息,请求类型POST
          r = 'user/info'
          break
        case 'userMenu': // 2.菜单,请求类型POST
          r = 'user/menu'
          break
        case 'getMenuByRoleId': // 依照角色获取菜单
          r = 'rosmeninfo/getMenuByRoleId'
          break
        case 'saveMenuByRoleId': // 保存角色菜单
          r = 'rosrolemenrel/saveMenuByRoleId'
          break
        case 'userUpdatePwd': // 3.修改用户密码,请求类型POST
          r = 'user/updatePassword'
          break
        case 'freezeUser': // 8.冻结用户
          r = 'frozenUserInfo'
          break

        /* === 登录登出接口 === */
        case 'addUserInfo': // 1.新增用户,POST
          r = 'addUserInfo'
          break
        // case 'downloadUserInfo': // 2.导出用户列表,GET
        //   r = 'downloadUserInfo'
        //   break
        case 'getUsers': // 3.用户列表查询,GET
          r = 'getUsers'
          break
        case 'login': // 4.登录,请求类型POST
          r = 'login'
          break
        case 'logout': // 5.登出,请求类型POST
          r = 'logout'
          break
        case 'getCheckCode': // 6.获取验证码,请求类型GET
          r = 'getCheckCode'
          // r = 'batterycar/transient/getCheckCode'
          break
        case 'pcLogin': // 7.登录，pc
          r = 'pcLogin'
          // r = 'batterycar/transient/pcLogin'
          break
        case 'selectUserInfoByPrimaryKey': // 6.根据ID查询,GET
          r = 'selectUserInfoByPrimaryKey'
          break
        case 'updateUserInfo': // 7.修改用户,POST
          r = 'updateUserInfo'
          break

        /* === 设备信息管理接口 === */
        case 'addEquipmentInfo': // 1.添加设备,请求类型POST
          r = 'addEquipmentInfo'
          break
        case 'downLoadEquipmentInfo': // 2.导出Excel,请求类型GET
          r = 'downLoadEquipmentInfo'
          break
        case 'frozen': // 3.冻结设备,请求类型GET
          r = 'frozen'
          break
        case 'getEquipmentInfoByNo': // 4.根据ID查询,请求类型GET
          r = 'getEquipmentInfoByNo'
          break
        case 'getList': // 5.列表查询,请求类型GET
          r = 'getList'
          break
        case 'updateEquipmentInfo': // 6.修改设备,请求类型POST
          r = 'updateEquipmentInfo'
          break
        case 'upLoadEquipmentInfo': // 7.上传设备信息POST
          r = 'upLoadEquipmentInfo'
          break
        case 'getEquipmentType': // 8.获取设备类型列表
          r = 'getEquipmentType'
          break

        /* === 部门管理接口 === */
        case 'addDept': // 1.新增部门,请求类型POST
          r = 'addDept'
          break
        case 'downloadDept': // 2.下载全部,请求类型GET
          r = 'downloadDept'
          break
        case 'getDeptById': // 3.根据主键ID查询,请求类型GET
          r = 'getDeptById'
          break
        case 'getDeptInfos': // 4.列表查询,请求类型GET
          r = 'getDeptInfos'
          break
        case 'getTree': // 5.树形列表查询,请求类型GET
          r = 'getTree'
          break
        case 'updateDept': // 6.修改部门,请求类型POST
          r = 'updateDept'
          break
        case 'uploadDept': // 7.上传部门,请求类型POST
          r = 'uploadDept'
          break
        case 'frozenDept': // 8.上传部门,请求类型POST
          r = 'frozenDept'
          break
        case 'summaryByDeptId': // 9.获取小区概况详情 POST
          r = 'summaryByDeptId'
          break

        /* === 电梯接口 === */
        case 'getCurrentSensorInfo': // 传感器当前信息,请求类型GET
          r = 'elevator/getCurrentSensorInfo'
          break

        /* === 报警事件处理流程接口 === */
        case 'findHisTaskList': // 1.查询历史流程,请求类型GET
          r = 'activit/findHisTaskList'
          break

        /* === 统计报表 === */
        case 'reportExl': // 1.导出表格,GET
          r = 'statisticReport/exportExcel'
          break
        case 'getCurrentDayAlertNum': // 2.获取当日报警总数,GET
          r = 'statisticReport/getCurrentDayAlertNum'
          break
        case 'getStatisticCountByDay': // 3.报表按日统计,GET
          r = 'statisticReport/getStatisticCountByDay'
          break
        case 'getStatisticCountByMonth': // 4.报表按月统计,GET
          r = 'statisticReport/getStatisticCountByMonth'
          break
        case 'getStatisticInfoList': // 5.查询列表,GET
          r = 'statisticReport/getStatisticInfoList'
          break

        /* === 机动车接口 === */
        case 'ParkInfo': // 1.查询停车管理，地址,请求类型GET
          r = 'VehiclePassing/ParkInfo'
          break
        case 'queryResident': // 常驻居民进出数统计,请求类型GET
          r = 'entranceGuard/queryResident'
          break
        case 'getLeaveVisitHourCount': // 获取当日访客签出小时数量 ,请求类型GET
          r = 'getLeaveVisitHourCount'
          break
        case 'getLocalVisitHourCount': // 获取当日访客签入小时数量,请求类型GET
          r = 'getLocalVisitHourCount'
          break

        /* === 小区 === */
        // 嘉乐园大屏
        case 'jiaAlarmInfo': // 告警信息
          r = 'jiading/bjxx'
          break
        case 'jiaEventOperate': // 事件处理(已处理、误报)
          r = 'jiading/eventOperate'
          break
        case 'jiaAlarmTrend': // 告警趋势(近10天和近一年)
          r = 'jiading/gjqs'
          break
        case 'jiaAlarmCount': // 统计各类设备的告警个数
          r = 'jiading/gjlx'
          break
        case 'jiaCancelSmoke': // 统计各类设备的告警个数
          r = 'jiading/cancelSmoke'
          break
        case 'jiaDelEvent': // 删除事件
          r = 'jiading/delevent'
          break
        case 'jiaSysSetting': // 短信配置
          r = 'jiading/smsSetting'
          break
        case 'summaryList': // 获取小区列表,请求类型POST
          r = 'summaryList'
          break
        case 'summaryEvent': // 获取所有名下小区告警统计POST
          r = 'summaryEvent'
          break
        case 'summaryDayEvent': // 24小时报警趋势图
          r = 'summaryDayEvent'
          break
        case 'summaryEventByAreaId': // 获取指定小区告警统计
          r = 'summaryEventByAreaId'
          break
        case 'summaryLastMonthEvent': // 获取上一个月所有告警日统计POST
          r = 'summaryLastMonthEvent'
          break
        case 'summaryCurrentMonthEvent': // 获取本月的所有告警日统计POST
          r = 'summaryCurrentMonthEvent'
          break
        case 'countLastThirtyEvent': // 获取近三十天内的告警数统计POST
          r = 'countLastThirtyEvent'
          break
        case 'roscarportinfo/list': // 获取充电桩列表POST
          r = 'roscarportinfo/list'
          break
        case 'roschargersocket/list': // 获取充电桩插座列表POST
          r = 'roschargersocket/list'
          break
        case 'rosdustbininfo/selectAllDustbinInfo': // 获取垃圾桶列表 GET
          r = 'rosdustbininfo/selectAllDustbinInfo'
          break
        case 'rosdustbininfo/topFive': // 查询满溢度前五的垃圾桶GET
          r = 'rosdustbininfo/topFive'
          break
        // 获取环境质量参数
        case 'rosAirQualityInfoList':
          r = 'rosairqualityinfo/list'
          break
        case 'getCamarasByDeptId':
          r = 'getCamarasByDeptId'
          break
        case 'getCarPark': // 开门记录查询POST
          r = 'accessControl/doorAccessCardBpushLog/getCar_park'
          break
        case 'queryEquipmentTestingList':
          r = 'equipmenttesting/list'
          // r = 'areaDustMonitor/QueryEquipmentTestingList'
          break
        case 'ws':
          r = 'ws'
          break

        /* === 报警短信模板 === */
        case 'getSceneInfoTree': // 场景树
          r = 'getModuleInfoTree'
          break
        case 'roswarnsmstempletList': // 短信模板初始数据
          r = 'roswarnsmstemplet/list'
          break
        case 'roswarnsmstempletSaveBatch': // 保存模板
          r = 'roswarnsmstemplet/saveBatch'
          break

        /* === 电瓶车接口一览 === */
        // 车库管理接口
        case 'batterycarGarageFindGarageInfo':
          r = 'batterycar/Garage/findGarageInfo' // 车库查询接口
          break

        case 'batterycarGarageGateExcel':
          r = 'batterycar/Garage/gateExcel'
          break

        case 'batterycarGarageGoGarage':
          r = 'batterycar/Garage/goGarage'
          break

        // 车位接口
        case 'batterycarTruckSpaceExcel': // 车位信息导出到EXCEL GET
          r = 'batterycar/TruckSpace/excel'
          break

        case 'batterycarTruckSpaceFindById': // 根据id获取车位信息 post
          r = 'batterycar/TruckSpace/findById'
          break

        case 'batterycarTruckSpaceFindByInId': // 获取车库信息 post
          r = 'batterycar/TruckSpace/findByInId'
          break

        case 'batterycarTruckSpaceFindUserInfo': // 查询用户车位信息 post
          r = 'batterycar/TruckSpace/findUserInfo'
          break

        // 电动车街道接口
        case 'pileMainFindCarportInfo': // 获取车位比例分布图表数据
          r = 'pile/main/findCarportInfo'
          break

        case 'pileMainFindCount':
          r = 'pile/main/findCount'
          break

        case 'pileMainFindCurrentCycleCount':
          r = 'pile/main/findCurrentCycleCount'
          break

        case 'pileMainFindStationAlertCount':
          r = 'pile/main/findStationAlertCount'
          break

        case 'pileMainFindStreeCoord':
          r = 'pile/main/findStreeCoord'
          break

        case 'pileMainGetMonthChargeCount':
          r = 'pile/main/getMonthChargeCount'
          break

        case 'pileMainGetStreetInfo':
          r = 'pile/main/getStreetInfo'
          break

        // 电费管理接口
        case 'batterycarElectricityDeleteElectricity':
          r = 'batterycar/electricity/deleteElectricity'
          break

        case 'batterycarElectricityFindById':
          r = 'batterycar/electricity/findById'
          break

        case 'batterycarElectricityFindEstateInfo':
          r = 'batterycar/electricity/findEstateInfo'
          break

        case 'batterycarElectricityListPageElectricity':
          r = 'batterycar/electricity/listPageElectricity'
          break

        case 'batterycarElectricitySaveElectricity':
          r = 'batterycar/electricity/saveElectricity'
          break

        // 电瓶车公共接口
        case 'batterycarCommonpileQueryStreetAndEstate': // 删除 post
          r = 'batterycar/commonpile/queryStreetAndEstate'
          break

        // 电瓶车收费标准接口
        case 'batterycarRatesDeleteRates':
          r = 'batterycar/rates/deleteRates'
          break

        case 'batterycarRatesFindById':
          r = 'batterycar/rates/findById/' + id
          break

        case 'batterycarRatesFindEstateInfo':
          r = 'batterycarRatesFindEstateInfo'
          break

        case 'batterycarRatesFindStationInfo':
          r = 'batterycar/rates/findStationInfo'
          break

        case 'batterycarRatesListPageRates':
          r = 'batterycar/rates/listPageRates'
          break

        case 'batterycarRatesSaveRates':
          r = 'batterycar/rates/saveRates'
          break

        // 电瓶车投保管理接口
        case 'batterycarInsuranceDeleteInsuranc':
          r = 'batterycar/insurance/deleteInsurance'
          break

        case 'batterycarInsuranceFindById':
          r = 'batterycar/insurance/findById/' + id
          break

        case 'batterycarInsuranceFindEstateInfo':
          r = 'batterycar/insurance/findEstateInfo'
          break

        case 'batterycarInsuranceFindStationInfo':
          r = 'batterycar/insurance/findStationInfo'
          break

        case 'batterycarInsuranceListPageInsurance':
          r = 'batterycar/insurance/listPageInsurance'
          break

        case 'batterycarInsuranceSaveInsurance':
          r = 'batterycar/insurance/saveInsurance'
          break

        case 'batterycarInsuranceUpdateStatus':
          r = 'batterycar/insurance/updateStatus/'
          break

        // 缴费记录接口
        case 'batterycarPaymentDeletePayment':
          r = 'batterycar/payment/deletePayment'
          break

        case 'batterycarPaymentFindById':
          r = 'batterycar/payment/findById'
          break

        case 'batterycarPaymentFindBySiteId':
          r = 'batterycar/payment/findBySiteId/'
          break

        case 'batterycarPaymentFindEstateInfo':
          r = 'batterycar/payment/findEstateInfo'
          break

        case 'batterycarPaymentFindSiteNameInfo':
          r = 'batterycar/payment/findSiteNameInfo'
          break

        case 'batterycarPaymentFindStationInfo':
          r = 'batterycar/payment/findStationInfo'
          break

        case 'batterycarPaymentGetMoney':
          r = 'batterycar/payment/getMoney'
          break

        case 'batterycarPaymentListPagePayment':
          r = 'batterycar/payment/listPagePayment'
          break

        case 'batterycarPaymentListStations':
          r = 'batterycar/payment/listStations'
          break

        case 'batterycarPaymentSavePayment':
          r = 'batterycar/payment/savePayment'
          break

        case 'batterycarPaymentSaveExcel':
          r = 'batterycar/payment/excel'
          break

        // 收支统计接口
        case 'batterycarPaymentStatisticsGoPaymentStat':
          r = 'batterycar/paymentStatistics/goPaymentStat'
          break

        case 'batterycarPaymentStatisticsListPagePaymentStat':
          r = 'batterycar/paymentStatistics/listPagePaymentStat'
          break

        case 'batterycarPaymentStatisticsListPagePaymentStatCharts':
          r = 'batterycar/paymentStatistics/listPagePaymentStatCharts'
          break

        case 'batterycarPaymentStatisticsStatExcel':
          r = 'batterycar/paymentStatistics/statExcel'
          break

        // 维修记录接口
        case 'batterycarGoMaintainDeleteMaintain':
          r = 'batterycar/goMaintain/deleteMaintain'
          break

        case 'batterycarGoMaintainFindById':
          r = 'batterycar/goMaintain/findById'
          break

        case 'batterycarGoMaintainGoMaintainStat':
          r = 'batterycar/goMaintain/goMaintainStat'
          break

        case 'batterycarGoMaintainListPageMaintain':
          r = 'batterycar/goMaintain/listPageMaintain'
          break

        case 'batterycarGoMaintainListPageMaintainStat':
          r = 'batterycar/goMaintain/listPageMaintainStat'
          break

        case 'batterycarGoMaintainListPageMaintainStatCharts':
          r = 'batterycar/goMaintain/listPageMaintainStatCharts'
          break

        case 'batterycarGoMaintainSaveMaintain':
          r = 'batterycar/goMaintain/saveMaintain'
          break

        case 'batterycarGoMaintainGetEquipment':
          r = 'batterycar/goMaintain/getEquipment'
          break

        case 'batterycarGoMaintainExcel':
          r = 'batterycar/goMaintain/excel'
          break

        // 小区管理员总览接口
        case 'batterycarEstateviewFindGarageById':
          r = 'batterycar/estateview/findGarageById'
          break

        case 'batterycarEstateviewFindGateDate':
          r = 'batterycar/estateview/findGateDate'
          break

        case 'batterycarEstateviewFindUserByPId':
          r = 'batterycar/estateview/findUserByPId'
          break

        case 'batterycarEstateviewFindVideoPage':
          r = 'batterycar/estateview/findVideoPage'
          break

        case 'batterycarEstateviewFindWeekOfCount':
          r = 'batterycar/estateview/findWeekOfCount'
          break

        case 'batterycarEstateviewGetReporMessageListByPage':
          r = 'batterycar/estateview/getReporMessageListByPage'
          break

        case 'batterycarEstateviewQueryEstateView':
          r = 'batterycar/estateview/queryEstateView'
          break

        /* == 小程序后台管理 == */

        // 报事报修
        case 'frontBizreportinfoList':
          r = 'front/bizreportinfo/list'
          break
        case 'frontBizreportinfoInfo':
          r = 'front/bizreportinfo/info'
          break
        case 'frontBizreportinfoAcceptReport':
          r = 'front/bizreportinfo/acceptReport'
          break

        // 投诉建议
        case 'frontBizcomplaininfoList':
          r = 'front/bizcomplaininfo/list'
          break
        case 'frontBizcomplaininfoInfo':
          r = 'front/bizcomplaininfo/info'
          break
        case 'frontBizcomplaininfoAcceptComplain':
          r = 'front/bizcomplaininfo/acceptComplain'
          break

        // 通知公告
        case 'frontBiznoticeinfoList':
          r = 'front/biznoticeinfo/list'
          break
        case 'frontBiznoticeinfoDetail':
          r = 'front/biznoticeinfo/info'
          break
        case 'frontBiznoticeinfoOffline':
          r = 'front/biznoticeinfo/offline'
          break
        case 'frontBiznoticeinfoDelete':
          r = 'front/biznoticeinfo/delete'
          break

        // 活动管理
        case 'frontBizactivityinfoList':
          r = 'front/bizactivityinfo/list'
          break
        case 'frontBizactivityinfoDetail':
          r = 'front/bizactivityinfo/info'
          break
        case 'frontBizactivityinfoOffline':
          r = 'front/bizactivityinfo/offline'
          break
        case 'frontBizactivityinfoDelete':
          r = 'front/bizactivityinfo/delete'
          break

        // 用户信息
        case 'appletGetList':
          r = 'appletuser/getList'
          break
        case 'appletuserInfo':
          r = 'appletuser/userInfo'
          break
        case 'appletuserDis':
          r = 'appletuser/userDis'
          break

        // 管理员
        case 'appletGetManagerList':
          r = 'appletuser/getManagerList'
          break
        case 'appletAddManager':
          r = 'appletuser/addManager'
          break
        case 'appletUpdateManager':
          r = 'appletuser/updateManager'
          break
        case 'appletRemoveManager':
          r = 'appletuser/removeManager'
          break
        case 'appletManagerInfo':
          r = 'appletuser/managerInfo'
          break

        // 小程序小区与菜单关系
        case 'bizappletdeptmenuGetMenuList':
          r = 'front/bizappletdeptmenu/getMenuList'
          break
        case 'bizappletdeptmenuUpdateDeptMenu':
          r = 'front/bizappletdeptmenu/updateDeptMenu'
          break

        // 居民管理
        case 'bizresidentinfoList':
          r = 'bizresidentinfo/list'
          break
        case 'bizresidentinfoInfo':
          r = 'bizresidentinfo/info'
          break
        case 'bizresidentinfoDelete':
          r = 'bizresidentinfo/delete'
          break

        // 房屋管理
        case 'bizhouseinfoList':
          r = 'bizhouseinfo/list'
          break
        case 'bizhouseinfoInfo':
          r = 'bizhouseinfo/info'
          break
        case 'bizhouseinfoSave':
          r = 'bizhouseinfo/save'
          break
        case 'bizhouseinfoUpdate':
          r = 'bizhouseinfo/update'
          break
        case 'bizhouseinfoDelete':
          r = 'bizhouseinfo/delete'
          break
        case 'bizhouseinfoUploadHouses':
          r = 'bizhouseinfo/upLoadHouses'
          break

        // 楼栋管理
        case 'bizbuildinfoList':
          r = 'bizbuildinfo/list'
          break
        case 'bizbuildinfoListAll': // 根据小区id查询楼栋列表(不分页)
          r = 'bizbuildinfo/listAll'
          break
        case 'bizbuildinfoInfo':
          r = 'bizbuildinfo/info'
          break
        case 'bizbuildinfoSave':
          r = 'bizbuildinfo/save'
          break
        case 'bizbuildinfoUpdate':
          r = 'bizbuildinfo/update'
          break
        case 'bizbuildinfoDelete':
          r = 'bizbuildinfo/delete'
          break

        // 车辆管理
        case 'bizcarinfoList':
          r = 'front/bizcarinfo/list'
          break

        /* === 巡更管理 === */
        // 巡更点位
        case 'patrolpointList':
          r = 'patrolpoint/list'
          break
        case 'patrolpointAdd':
          r = 'patrolpoint/add'
          break
        case 'patrolpointEdit':
          r = 'patrolpoint/edit'
          break
        case 'patrolpointDelete':
          r = 'patrolpoint/del'
          break

        // 巡更记录
        case 'bizpatrolloginfoList':
          r = 'bizpatrolloginfo/list'
          break

        // 访客管理
        case 'bizvisitorinfoSearch':
          r = 'bizvisitorinfo/search'
          break

        // 物业
        case 'bizrmcinfoInfo':
          r = 'front/bizrmcinfo/info'
          break

        default:
          alert('您填写的请求地址有误！')
      }

      p = hostUrl + r
      return p
    }
  }
  return o
}
